package com.ruoyi.publish.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelField;
import javafx.scene.input.DataFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 执法机构对象 identify_law_enforcement
 *
 * @author 张泽望
 * @date 2020-11-02
 */
public class IdLaw extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;


    /**
     * 创建人工号
     */
//    @Excel(name = "创建人工号")
    private String createName;

    /**
     * 修改时间
     */
//    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /**
     * 修改人工号
     */
//    @Excel(name = "修改人工号")
    private String updateName;

    /**
     * 执法机构
     */
    @Excel(name = "执法机构")
    private String departName;

    /**
     * 管理人
     */
    @Excel(name = "管理人")
    private String userName;

    /**
     * 创建时间
     */
    // @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 备用字段1
     */
    private String by1;

    /**
     * 备用字段2
     */
    private String by2;

    /**
     * 备用字段3
     */
    private String by3;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "执法机构")
    public String getDepartName() {
        return departName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    @ExcelField(required = ExcelField.ExcelRequired.must, filedName = "管理人")
    public String getUserName() {
        return userName;
    }

    public void setBy1(String by1) {
        this.by1 = by1;
    }

    public String getBy1() {
        return by1;
    }

    public void setBy2(String by2) {
        this.by2 = by2;
    }

    public String getBy2() {
        return by2;
    }

    public void setBy3(String by3) {
        this.by3 = by3;
    }

    public String getBy3() {
        return by3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createDate", getCreateDate())
                .append("createName", getCreateName())
                .append("updateDate", getUpdateDate())
                .append("updateName", getUpdateName())
                .append("departName", getDepartName())
                .append("userName", getUserName())
                .append("by1", getBy1())
                .append("by2", getBy2())
                .append("by3", getBy3())
                .toString();
    }
}
